package com.niiwoo.civet.trade.dto.response.loan;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @Author: wuke
 * @Description:
 * @Date: Created in 11:45 2018/4/14
 */
@Data
public class LoanConfigResDTO implements Serializable {
    private static final long serialVersionUID = -2460849303273070610L;

    // 产品名称
    private String productName;
    
    // 最高借款金额
    private BigDecimal minAmount;

    // 最低借款金额
    private BigDecimal maxAmount;

    //可用额度
    private BigDecimal aviAmount;

    // 申请页面Banner图URL
    private String bannerUrl;

    // 默认借款金额
    private BigDecimal defaultLoanAmount;

    //默认借款期限
    private Short defaultLoanDeadline;

    // 可选借款期限
    private List<Integer> deadlineList;

    // 借款可选标题
    private List<String> loanTitleList;

    // 期限对应的利率配置列表
    private List<LoanRateConfigDTO> loanRateList;

    // 借款金额倍数
    private Integer amountTimes;

    @Data
    public static class LoanRateConfigDTO implements Serializable {
        private static final long serialVersionUID = 4568695652684013221L;

        // 借款期限
        private Integer deadline;

        // 还款方式1、到期还本付息，2、等额本息
        private Byte repaymentMode;

        // 借款利率
        private BigDecimal borrowInterestRate;
    }
}
